package com.hudilao.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hudilao.common.R;
import com.hudilao.dto.OrderReviewDTO;
import com.hudilao.dto.OrderReviewDetailDTO;
import com.hudilao.entity.OrderReview;

public interface OrderReviewService extends IService<OrderReview> {

    //根据订单id获取用户评价
    public String getReviewTextByOrderId(long orderId);

    //根据订单id查询商家回复
    public String getReviewReplyByOrderId(long orderId);

    //根据订单id新增用户评价
    public R<String> add(OrderReviewDTO orderReviewDTO);

    //根据评价号对评价分页查询
    public Object getOrderReviewsOrByOrderId(int page, int pageSize, Long orderId);

    //根据评价id查询评价详情
    public OrderReviewDetailDTO getOrderReviewDetailByReviewId(Long orderId);

    //根据评价id保存管理员回复
    public void saveEmployeeReply(Long orderId, String employeeReply);
}
